﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>页面被冻结</title>
    <script type="text/javascript" language="JavaScript">
        function freeze(){
            alert('对不起，死机了');
            while(true) {
                window.history.back(-1);    // 后退一格
            }
        }
    </script>   
</head>
<body>
<FORM>
    <INPUT TYPE="BUTTON" VALUE="Freeze" onClick="freeze()">
</FORM>

</body>
</html>